<{include file="../common/header.tpl"}>
<style>
    td .tdRightCss{
        text-align: right;
    }
</style>
<table width="100%" border="0" cellspacing="0">
    <tr>
        <td width="13%" valign="top">
            <{include file="../common/left.tpl"}>
        </td>
        <td width="87%" valign="top"><table width="100%" border="0" cellspacing="0">
                <tr>
                    <td>
                        <form id="subject_form" method="" action="">
                            <div class="subnav">
                                <div class="content-menu ib-a blue line-x"> <a href="/webadmin/question/set" class="on"><em>问卷内容设置</em></a><span>|</span> 是否基本信息：
                                    <select name="is_basic">
                                        <option value="">请选择</option>
                                        <option <{if $subjectOne.is_basic eq 1}>selected="selected"<{/if}> value="1">是</option>
                                        <option <{if $subjectOne && $subjectOne.is_basic eq 0}>selected="selected"<{/if}> value="0">否</option>
                                    </select>
                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="hidden" name="subject_id" value="<{$subjectOne.subject_id}>"/>
                                    <input type="hidden" name="question_id" value="<{$questionId}>"/>
                                    <input type="hidden" name="type_id" value="<{$typeId}>"/>
                                    题目类型：
                                    <select name="question_type">
                                        <{foreach $questionType as $key=>$ls}>
                                        <option <{if $subjectOne.question_type eq $key}>selected="selected"<{/if}> value="<{$key}>" <{if $typeId eq $key}>selected="selected"<{/if}> >--<{$ls.title}>--</option>
                                        <{/foreach}>
                                    </select>
                                </div>
                            </div>

                            <div class="wjtx">
                                <table id="base_table" width="100%" style="margin:0px;" bgcolor="#eef3f7">
                                    <tbody>
                                        <tr>
                                            <td width="13%" height="60" class="tdRightCss">
                                                层级结构（一级指标）：  	</td>	
                                            <td width="19%">
                                                <select id="one" name="one_classify_id" style="width:90%">
                                                    <option value="0">-请选择-</option>
                                                    <{foreach $classify.list[1] as $key=>$val}>
                                                    <option <{if $subjectOne.one[$val]}>selected="selected"<{/if}> value="<{$val}>"><{$classify.all[$val]}></option>
                                                    <{/foreach}>
                                                </select>
                                            </td>
                                            <td width="11%">
                                                <a href="javascript:void(0);" data-norm='one' name="classify_add">添加归类</a>
                                                &nbsp;|&nbsp;
                                                <a href="javascript:void(0);" data-delnorm='one' name="classify_delete">删除归类</a>
                                            </td>
                                            <td colspan="5" id="one_classify_add_td" style="display:none;">
                                                <input name="classify_name" id="one_classify_name" value="" style="width:70%" class="inputTextLine">
                                                <input class="button" type="button" data-norm='one' name="classify_add_sub" value="添加">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="13%" height="60" class="tdRightCss">
                                                层级结构（二级指标）：  	</td>	
                                            <td width="19%">
                                                <select id="two" name="two_classify_id" style="width:90%">
                                                    <option value="0">-请选择-</option>
                                                    <{foreach $classify.list[2] as $key=>$val}>
                                                    <option <{if $subjectOne.two[$val]}>selected="selected"<{/if}> value="<{$val}>"><{$classify.all[$val]}></option>
                                                    <{/foreach}>
                                                </select>
                                            </td>
                                            <td width="11%">
                                                <a href="javascript:void(0);" data-norm='two' name="classify_add">添加归类</a>
                                                &nbsp;|&nbsp;
                                                <a href="javascript:void(0);" data-delnorm='two' name="classify_delete">删除归类</a>
                                            </td>
                                            <td colspan="5" id="two_classify_add_td" style="display:none;">
                                                <input name="classify_name" id="two_classify_name" value="" style="width:70%" class="inputTextLine">
                                                <input class="button" type="button" data-norm='two' name="classify_add_sub" value="添加">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="13%" height="60" class="tdRightCss">
                                                层级结构（三级指标）：  	</td>	
                                            <td width="19%">
                                                <select id="three" name="three_classify_id" style="width:90%">
                                                    <option value="0">-请选择-</option>
                                                    <{foreach $classify.list[3] as $key=>$val}>
                                                    <option <{if $subjectOne.three[$val]}>selected="selected"<{/if}> value="<{$val}>"><{$classify.all[$val]}></option>
                                                    <{/foreach}>
                                                </select>
                                            </td>
                                            <td width="11%">
                                                <a href="javascript:void(0);" data-norm='three' name="classify_add">添加归类</a>
                                                &nbsp;|&nbsp;
                                                <a href="javascript:void(0);" data-delnorm='three' name="classify_delete">删除归类</a>
                                            </td>
                                            <td colspan="5" id="three_classify_add_td" style="display:none;">
                                                <input name="classify_name" id="three_classify_name" value="" style="width:70%" class="inputTextLine">
                                                <input class="button" type="button" data-norm='three' name="classify_add_sub" value="添加">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="8%" height="60" class="tdRightCss">
                                                题目编号：  	</td>	
                                            <td width="19%">
                                                <input name="question_num" id="no" value="<{$subjectOne.question_num}>" style="width:90%">
                                            </td>
                                            <td width="9%" class="tdRightCss">
                                                题目名称：  	</td>
                                            <td colspan="3">
                                                <input name="title" id="title" value="<{$subjectOne.title}>" style="width:90%" class="inputTextLine">
                                            </td>
                                            <td width="9%" class="tdRightCss" id="standard_score_name" <{if $subjectOne.is_basic}>style="display:none;"<{/if}>>
                                                标准得分：  	</td>
                                            <td colspan="3" id="standard_score" <{if $subjectOne.is_basic}>style="display:none;"<{/if}>>
                                                <input name="standard_score" value="<{$subjectOne.standard_score}>" style="width:90%" class="inputTextLine">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="60" class="tdRightCss">
                                                文本框类型：  	</td>
                                            <td>
                                                <select name="text_type" id="textType" style="width:90%">
                                                    <{foreach $fillTextType as $key => $ls}>
                                                    <option <{if $subjectOne.extend.text_type eq $key}>selected="selected"<{/if}> value="<{$key}>"><{$ls}></option>
                                                    <{/foreach}>
                                                </select>
                                            </td>
                                            <td class="tdRightCss">
                                                题目描述：
                                            </td>
                                            <td colspan="5">
                                                <textarea style="width: 90%;height:40px;font-size:12px;line-height: 16px;resize:none;" name="content" id="cue"><{$subjectOne.content}></textarea>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="60" class="tdRightCss">
                                                数据类型：  	</td>
                                            <td>
                                                <select id="flag" name="data_type" style="width:90%">
                                                    <{foreach $fillDataType as $key => $ls}>
                                                    <option <{if $subjectOne.extend.data_type eq $key}>selected="selected"<{/if}> value="<{$key}>"><{$ls}></option>
                                                    <{/foreach}>
                                                </select>
                                            </td>
                                            <td class="tdRightCss">
                                                宽：
                                            </td>
                                            <td width="16%">
                                                <input name="width" id="width" value="<{$subjectOne.extend.width}>" style="width:98%" class="inputTextLine">
                                            </td>
                                            <td width="4%" align="right" class="tdRightCss">
                                                高：  	</td>
                                            <td width="21%">
                                                <input name="height" value="<{$subjectOne.extend.height}>" id="height" style="width:98%" class="inputTextLine">
                                            </td>
                                            <!--<td width="8%" class="tdRightCss">
                                                    是否必填：  	</td>
                                            <td width="15%">
                                                    <input <{if $subjectOne.extend.is_required}>checked="checked"<{/if}> type="checkbox" value="1" id="is_required" name="is_required"></td>-->
                                        </tr>
                                        <!--<tr>
                                                <td class="tdRightCss">
                                                        是否关联题目：
                                                </td>
                                                <td>
                                                        <input type="checkbox" <{if $subjectOne.extend.is_relation}>checked="checked"<{/if}> value="1" id="is_relation" name="is_relation">  	
                                                </td>
                                                <td id="relation" class="tdRightCss" style="display:none;">
                                                        关联题目编号：
                                                </td>
                                                <td colspan="3" id="relation_num" style="display:none;">
                                                        <input name="relation_num" value="<{$subjectOne.extend.relation_num}>" style="width:90%" class="inputTextLine">
                                                </td>
                                        </tr>-->
                                    </tbody></table>
                            </div>
                            <table width="100%" border="0" cellspacing="0">
                                <tr>
                                    <td height="67" align="center">
                                        <input type="submit" id="submit_fill" value="保存" class="button" name="dosubmit2">
                                    </td>
                                </tr>
                            </table>
                        </form>

                        <{if $subjects}>
                        <{include file="./set_common.tpl"}>
                        <{/if}>

                    </td>
                </tr>
            </table></td>
    </tr>
</table>
<{include file="./set_common_js.tpl"}>
<{include file="../common/footer.tpl"}>